<template>
	<view class="search-top">
		<uni-search-bar v-model='searchValue' @input="jieliu(1000)"></uni-search-bar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchValue: '',
				lessTime: 0
			}
		},
		watch: {

		},
		methods: {
			search() {
				console.log(this.searchValue)
			},
			jieliu(data) {
				let newTime = Date.now();
				if (newTime - this.lessTime > data) {
					this.search()
					this.lessTime = newTime
				}
			}
		}
	}
</script>

<style>
</style>
